package leetcode.code0029;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution29 implements IDebug {

	public abstract int divide(int dividend, int divisor);

	@Override
	public void debug1() {
		int dividend = 10;
		int divisor = 3;
		HelpDebug.compare(dividend / divisor, this.divide(dividend, divisor));
	}

	@Override
	public void debug2() {
		int dividend = 7;
		int divisor = -3;
		HelpDebug.compare(dividend / divisor, this.divide(dividend, divisor));
	}

	@Override
	public void debug3() {
		int dividend = -2147483648;
		int divisor = -1;
		HelpDebug.compare(2147483647, this.divide(dividend, divisor));
	}

	@Override
	public void debug4() {
		int dividend = -2147483648;
		int divisor = 1;
		HelpDebug.compare(-2147483648, this.divide(dividend, divisor));
	}

	public void debug5() {
		int dividend = -2147483648;
		int divisor = -2147483648;
		HelpDebug.compare(1, this.divide(dividend, divisor));
	}

	public void debug6() {
		int dividend = -2147483648;
		int divisor = 2147483647;
		HelpDebug.compare(-1, this.divide(dividend, divisor));
	}
	public void debug7() {
		int dividend = -2147483648;
		int divisor = 2;
		HelpDebug.compare(-1073741824, this.divide(dividend, divisor));
	}


}
